package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class ConventionExecutive implements Serializable {

    /** identifier field */
    private Integer executiveId;

    /** nullable persistent field */
    private String firstName;

    /** nullable persistent field */
    private String lastName;

    /** nullable persistent field */
    private byte[] photo;

    /** nullable persistent field */
    private String username;

    /** nullable persistent field */
    private String passWord;
    
    /** nullable persistent field */
    private Boolean admin;

    /** persistent field */
    private org.ejc.persist.model.Convention convention;

    /** persistent field */
    private org.ejc.persist.model.LanguageIso languageIso;

    /** persistent field */
    private Set contactDetails;

    /** persistent field */
    private Set transactions;

    /** persistent field */
    private Set taskHasConventionExecutives;

    /** full constructor */
    public ConventionExecutive(Integer executiveId, String firstName, String lastName, byte[] photo, String username, String passWord, org.ejc.persist.model.Convention convention, org.ejc.persist.model.LanguageIso languageIso, Set contactDetails, Set transactions, Set taskHasConventionExecutives,Boolean admin) {
        this.admin=admin;
    	this.executiveId = executiveId;
        this.firstName = firstName;
        this.lastName = lastName;
        this.photo = photo;
        this.username = username;
        this.passWord = passWord;
        this.convention = convention;
        this.languageIso = languageIso;
        this.contactDetails = contactDetails;
        this.transactions = transactions;
        this.taskHasConventionExecutives = taskHasConventionExecutives;
    }

    /** default constructor */
    public ConventionExecutive() {
    }

    /** minimal constructor */
    public ConventionExecutive(Integer executiveId, org.ejc.persist.model.Convention convention, org.ejc.persist.model.LanguageIso languageIso, Set contactDetails, Set transactions, Set taskHasConventionExecutives,Boolean admin) {
        this.executiveId = executiveId;
        this.convention = convention;
        this.languageIso = languageIso;
        this.contactDetails = contactDetails;
        this.transactions = transactions;
        this.taskHasConventionExecutives = taskHasConventionExecutives;
        this.admin=admin;
        
    }

    public Integer getExecutiveId() {
        return this.executiveId;
    }

    public void setExecutiveId(Integer executiveId) {
        this.executiveId = executiveId;
    }

    public String getFirstName() {
        return this.firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return this.lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public byte[] getPhoto() {
        return this.photo;
    }

    public void setPhoto(byte[] photo) {
        this.photo = photo;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassWord() {
        return this.passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public org.ejc.persist.model.Convention getConvention() {
        return this.convention;
    }

    public void setConvention(org.ejc.persist.model.Convention convention) {
        this.convention = convention;
    }

    public org.ejc.persist.model.LanguageIso getLanguageIso() {
        return this.languageIso;
    }

    public void setLanguageIso(org.ejc.persist.model.LanguageIso languageIso) {
        this.languageIso = languageIso;
    }

    public Set getContactDetails() {
        return this.contactDetails;
    }

    public void setContactDetails(Set contactDetails) {
        this.contactDetails = contactDetails;
    }

    public Set getTransactions() {
        return this.transactions;
    }

    public void setTransactions(Set transactions) {
        this.transactions = transactions;
    }

    public Set getTaskHasConventionExecutives() {
        return this.taskHasConventionExecutives;
    }

    public void setTaskHasConventionExecutives(Set taskHasConventionExecutives) {
        this.taskHasConventionExecutives = taskHasConventionExecutives;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("executiveId", getExecutiveId())
            .toString();
    }
    
    public boolean isAdmin(){
    	return admin;
    }
    public void setAdmin(boolean admin){
    	this.admin=admin;
    }

}
